{% extends "temple.html" %}
{% block user %}
class="active"
{% endblock %}
{% block connet %}
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <h1 class="page-header">用户表增加</h1>
                <form action="" method="post" class="form-horizontal">
                {% csrf_token %}
                   <div class="form-group {% if obj.name.errors %}has-error{% endif %}">
                        <label for="{{ obj.name.id_for_label }}" class="col-sm-2 col-sm-offset-2 control-label">{{ obj.name.label }}</label>
                             {{obj.name}}
                            <span style="color: red">{{ obj.name.errors.0 }}</span>
                    </div>
                    <div class="form-group {% if obj.username.errors %}has-error{% endif %}">
                        <label for="{{ obj.username.id_for_label }}" class="col-sm-2 col-sm-offset-2 control-label">{{ obj.username.label }}</label>
                             {{obj.username}}
                            <span style="color: red">{{ obj.username.errors.0 }}</span>
                    </div>

                    <div class="form-group {% if obj.password.errors %}has-error{% endif %}">
                        <label for="{{ obj.password.id_for_label }}" class="col-sm-2 col-sm-offset-2 control-label">{{ obj.password.label }}</label>
                             {{obj.password}}
                            <span style="color: red">{{ obj.password.errors.0 }}</span>
                    </div>
                    <div class="form-group {% if obj.re_password.errors %}has-error{% endif %}">
                        <label for="{{ obj.re_password.id_for_label }}" class="col-sm-2 col-sm-offset-2 control-label">{{ obj.re_password.label }}</label>
                             {{obj.re_password}}
                            <span style="color: red">{{ obj.re_password.errors.0 }}</span>
                    </div>
                    <div class="form-group {% if obj.phone.errors %}has-error{% endif %}">
                        <label for="{{ obj.phone.id_for_label }}" class="col-sm-2 col-sm-offset-2 control-label">{{ obj.phone.label }}</label>
                             {{obj.phone}}
                            <span style="color: red">{{ obj.phone.errors.0 }}</span>
                    </div>
                    <button style="margin-left: 405px" class=" btn btn-primary">提交</button>
                </form>

        </div>
{% endblock %}